dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0176d23
)
Return '' to avoid vague cryptic error message when a user lacks permissions
author
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 31 Mar 2008 18:01:39 +0000
(18:01 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Mon, 31 Mar 2008 18:01:39 +0000
(18:01 +0000)
includes/DifferenceEngine.php
patch
|
blob
|
history
diff --git
a/includes/DifferenceEngine.php
b/includes/DifferenceEngine.php
index
0671fa0
..
ee87022
100644
(file)
--- a/
includes/DifferenceEngine.php
+++ b/
includes/DifferenceEngine.php
@@
-426,9
+426,9
@@
CONTROL;
wfProfileIn( $fname );
// Check if the diff should be hidden from this user
if ( $this->mOldRev && !$this->mOldRev->userCan(Revision::DELETED_TEXT) ) {
- return
false
;
+ return
''
;
} else if ( $this->mNewRev && !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) {
- return
false
;
+ return
''
;
}
// Cacheable?
$key = false;